/**
 * 自定义配置相关
 */
import request from '@/utils/request'

// ==========  color, splashScreen, tabBar相关 ==========
/**
 * @method getWxaConfig
 * @description 获取小程序基础配置
 */
export function getWxaConfig(params) {
  return request({
    url: '/wx/biz/wxa/custom/config',
    method: 'get',
    params: params
  })
}

/**
 * @method editWxaConfig
 * @description 编辑小程序基础配置
 */
export function editWxaConfig({ params, data }) {
  return request({
    url: '/wx/biz/wxa/custom/config',
    method: 'post',
    params: params,
    data: data
  })
}
